package com.xishu.entity.order;

import com.xishu.entity.AbstractEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;

/**
 * 点餐种类报表，单独拿出来，减少数据量,也要做分库分表处理
 */
@Entity(name = "order_type_mapping")
public class OrderTypeMapping extends AbstractEntity {
    @ApiModelProperty(value = "分店的ID")
    private Long shopId;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @ApiModelProperty(value = "类型")
    private Long orderType;

    @ApiModelProperty(value = "金额")
    private Double cash;

    @ApiModelProperty(value = "父订单的ID,如果本身是父订单，那么订单号也是父订单号")
    private Long parentOrderId;

    public Long getParentOrderId() {
        return parentOrderId;
    }

    public void setParentOrderId(Long parentOrderId) {
        this.parentOrderId = parentOrderId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Double getCash() {
        return cash;
    }

    public void setCash(Double cash) {
        this.cash = cash;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getOrderType() {
        return orderType;
    }

    public void setOrderType(Long orderType) {
        this.orderType = orderType;
    }
}
